﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RPGProject.GameWorld.GameObjects
{
    /// <summary>
    /// A subclass of GameObjects that must belong to a specific world.
    /// </summary>
    abstract class WorldSpecificGameObject : GameObject
    {
        /// <summary>
        /// The world the GameObject belongs to.
        /// </summary>
        protected readonly World world;
        public WorldSpecificGameObject(int x, int y, char icon, ConsoleColor iconColor, String name, World w, String type_id)
            : base(x, y, icon, iconColor, name, type_id)
        {
            this.world = w;
        }
    }
}
